<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>姓名：{{info.name}}</div>
        <div>年龄：{{info.age}}</div>
        <div>说：{{info.say}}</div>
        <div>性别：{{info.sex}}</div>
    </div>
    <script>
    new Vue({
        el:"#app",
        data:{
            info:{
                name:"周杰伦",
                age:30,
                say:"哎哟，不错哦"
            }
        },
        mounted(){
           // console.log(this.info)
           // this.info.sex="男"
            //console.log(this.info)
            //this.$set(obj,key,val)
            this.$set(this.info,"sex","男")

        }
        
    })
    
    </script>
    
</body>
</html>